package com.example.springbootdemo2.Component;

import com.example.springbootdemo2.controller.TestController;
import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TestComponent {
    @Autowired
    public TestController testController;
    @PostConstruct
    public void test() {
        System.out.println(testController);
    }
}
